package com.relytosoft.mizar.analyze.common.config.properties;


import com.relytosoft.mizar.analyze.base.constant.PropertyConstants;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Arrays;

/**
 * 开阳安防系统音视频配置信息
 *
 * @author Jierry
 * @version 2022/4/2.
 */
@ConfigurationProperties(prefix = PropertyConstants.PROPERTY_MIZAR_ANALYZE)
public class MizarAnalyzeProperties {

    private String key;

    private String openApiUrl;

    private String appkey;

    private String appSecret;

    private String protocol;

    private String gatewayIP;

    private String gatewayPort;

    private String alarmUploadUrl;

    /**
     * 排除路径
     */
    private String[] excludes;

    public String getOpenApiUrl() {
        return openApiUrl;
    }

    public void setOpenApiUrl(String openApiUrl) {
        this.openApiUrl = openApiUrl;
    }

    public String getAppkey() {
        return appkey;
    }

    public void setAppkey(String appkey) {
        this.appkey = appkey;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String[] getExcludes() {
        return excludes;
    }

    public void setExcludes(String[] excludes) {
        this.excludes = excludes;
    }

    public String getGatewayIP() {
        return gatewayIP;
    }

    public void setGatewayIP(String gatewayIP) {
        this.gatewayIP = gatewayIP;
    }

    public String getGatewayPort() {
        return gatewayPort;
    }

    public void setGatewayPort(String gatewayPort) {
        this.gatewayPort = gatewayPort;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getAlarmUploadUrl() {
        return alarmUploadUrl;
    }

    public void setAlarmUploadUrl(String alarmUploadUrl) {
        this.alarmUploadUrl = alarmUploadUrl;
    }

    @Override
    public String toString() {
        return "MizarAnalyzeProperties{" +
                "key='" + key + '\'' +
                ", openApiUrl='" + openApiUrl + '\'' +
                ", appkey='" + appkey + '\'' +
                ", appSecret='" + appSecret + '\'' +
                ", protocol='" + protocol + '\'' +
                ", gatewayIP='" + gatewayIP + '\'' +
                ", gatewayPort='" + gatewayPort + '\'' +
                ", alarmUploadUrl='" + alarmUploadUrl + '\'' +
                ", excludes=" + Arrays.toString(excludes) +
                '}';
    }
}
